<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tin-tuc-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'TieuDe'); ?>
		<?php echo $form->textField($model,'TieuDe',array('size'=>60,'maxlength'=>250)); ?>
		<?php echo $form->error($model,'TieuDe'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TomTat'); ?>
		<?php echo $form->textField($model,'TomTat',array('size'=>60,'maxlength'=>1000)); ?>
		<?php echo $form->error($model,'TomTat'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'UrlHinh'); ?>
		<?php echo $form->fileField($model,'UrlHinh',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'UrlHinh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'idLT'); ?>
		<?php echo $form->textField($model,'idLT'); ?>
		<?php echo $form->error($model,'idLT'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NoiDung'); ?>
		<?php
                    $this->widget('ext.widgets.xheditor.XHeditor',array(
                        'model'=>$model,
                        'modelAttribute'=>'NoiDung',
                        'showModelAttributeValue'=>true, // defaults to true, displays the value of $modelInstance->attribute in the textarea
                        'config'=>array(
                            'tools'=>'mfull', // mini, simple, mfull, full or from XHeditor::$_tools, tool names are case sensitive
                            'skin'=>'vista', // default, nostyle, o2007blue, o2007silver, vista
                            'width'=>'100%',
                            //see XHeditor::$_configurableAttributes for more
                        ),
                        'contentValue'=>'Enter your text here', // default value displayed in textarea/wysiwyg editor field
                        'htmlOptions'=>array('rows'=>5, 'cols'=>10), // to be applied to textarea
                    ));
                ?>
		<?php echo $form->error($model,'NoiDung'); ?>
	</div>
    
        <div class="row">
		<?php echo $form->labelEx($model,'AnHien'); ?>
		<?php echo $form->checkBox($model,'AnHien'); ?>
		<?php echo $form->error($model,'AnHien'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Thêm mới' : 'Lưu'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->